package tool;

import base.Node;

import java.util.Arrays;

public class NodeTool {

    public Node test1() {
        Node n5 = new Node(5);
        Node n6 = new Node(6);
        Node n3 = new Node(3, Arrays.asList(n5, n6));
        Node n2 = new Node(2);
        Node n4 = new Node(4);
        Node n1 = new Node(1, Arrays.asList(n3, n2, n4));
        return n1;
    }

    public Node test2() {
        Node n2 = new Node(2);

        Node n14 = new Node(14);
        Node n11 = new Node(11, Arrays.asList(n14));
        Node n7 = new Node(7, Arrays.asList(n11));
        Node n6 = new Node(6);
        Node n3 = new Node(3, Arrays.asList(n6, n7));

        Node n12 = new Node(12);
        Node n8 = new Node(8, Arrays.asList(n12));
        Node n4 = new Node(4, Arrays.asList(n8));

        Node n13 = new Node(13);
        Node n9 = new Node(9, Arrays.asList(n13));
        Node n10 = new Node(10);
        Node n5 = new Node(5, Arrays.asList(n9, n10));

        Node n1 = new Node(1, Arrays.asList(n2, n3, n4, n5));
        return n1;



    }
}
